<script setup lang="ts">
import { onMounted, ref } from 'vue';

const el = ref<null | HTMLInputElement>(null)

onMounted(() => {
  // 自动聚焦
  el.value?.focus()
})

</script>

<template>
  <div class="-page">
    <input type="text" ref="el">
  </div>
</template>

<style lang="scss" scoped></style>
